#import <Cocoa/Cocoa.h>

#include <stdio.h>
#define FADE_OUT_TIME 4.0f //after this time [sec] message will fade-out

@interface FourCCController : NSObject {
    IBOutlet NSBox *boxDropBox;
    IBOutlet NSComboBox *comboDescription;
    IBOutlet NSComboBox *comboUsed;
    IBOutlet NSTextField *txtFileName;
	IBOutlet NSTextField *txtMessage;
	IBOutlet NSImageView *msgIcon;
	IBOutlet NSWindow *mainWindow;
	NSString *filePath;
	NSArray *fileTypes;
	NSOpenPanel *openFile;
	NSArray *fourCCCodes;
	NSString *codeUsed;
	NSString *codeDescription;
	bool modified;
	bool fileOpened;
	bool displaying;
	NSViewAnimation *theAnim;
	NSMutableDictionary* firstViewDict;
	NSMutableDictionary* secondViewDict;
	//for fade-in effect
	NSViewAnimation *theAnim2;
	NSMutableDictionary* firstViewDict2;
	NSMutableDictionary* secondViewDict2;
	

	
	
}
- (IBAction)getFourCC:(id)sender;
- (IBAction)setFourCC:(id)sender;
- (IBAction)showOpenFile:(id)sender;
- (BOOL)application:(NSApplication *)theApplication openFile:(NSString *)filename;
- (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)theApplication;
- (void)boxWasDblClicked:(NSNotification*)note;
- (void)fileWasDropped:(NSNotification*)note;
- (void)displayInformation:(NSString*)text;
- (void)displayError:(NSString*)text :(NSString*)title;
- (void)fadeOutMessage;
- (void)fadeOutMessage;
- (void)fadeInMessage;
-(void) initAnimations;
@end
